package com.paper.tiger.easy.rpc.s.client.client;

import java.io.Serializable;

/**
 * [简要描述]:
 * [详细描述]:
 *
 * @author ZouHaiBo
 * @version 1.0, 2021/5/31 11:09
 * @since JDK 1.8
 */
public class Invoke implements Serializable
{
    /** 调用方法名称*/
    private String method;

    /** 接口全限定名称*/
    private String interfaceClassName;

    /** 实现类全限定名称*/
    private String implClassName;

    /** 参数列表*/
    private Object[] args;

    /** 参数类型*/
    private Class<?>[] paramsTypes;

    /** 返回结果*/
    private Object result;

    public Class<?>[] getParamsTypes()
    {
        return paramsTypes;
    }

    public void setParamsTypes(Class<?>[] paramsTypes)
    {
        this.paramsTypes = paramsTypes;
    }

    public String getMethod()
    {
        return method;
    }

    public void setMethod(String method)
    {
        this.method = method == null ? null : "".equals(method.trim()) ? null : method.trim();
    }

    public String getInterfaceClassName()
    {
        return interfaceClassName;
    }

    public void setInterfaceClassName(String interfaceClassName)
    {
        this.interfaceClassName = interfaceClassName == null ?
                null :
                "".equals(interfaceClassName.trim()) ? null : interfaceClassName.trim();
    }

    public String getImplClassName()
    {
        return implClassName;
    }

    public void setImplClassName(String implClassName)
    {
        this.implClassName =
                implClassName == null ? null : "".equals(implClassName.trim()) ? null : implClassName.trim();
    }

    public Object[] getArgs()
    {
        return args;
    }

    public void setArgs(Object[] args)
    {
        this.args = args;
    }

    public Object getResult()
    {
        return result;
    }

    public void setResult(Object result)
    {
        this.result = result;
    }
}
